-- GENERATED SPELL FOR [Bloodroar the Stalker] --


function spell0_5346(pUnit, Event) --@Blood Howl,Self--
pUnit:FullCastSpellOnTarget(3264,pUnit)
pUnit:RegisterEvent('Sorts_5346', 16000, 1)
end

function spell1_5346(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_5346', 602, 1)
end

function Sorts_5346(pUnit, Event)
local choix_sorts_5346 = math.random(0, 1)
if choix_sorts_5346 == 0 then
pUnit:RegisterEvent('spell0_5346', 1, 1)
end
if choix_sorts_5346 == 1 then
pUnit:RegisterEvent('spell1_5346', 1, 1)
end
end

function mob5346_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5346', math.random(1500, 3000), 1)
end

function mob5346_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5346_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5346_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5346, 1, 'mob5346_Action')
RegisterUnitEvent(5346, 2, 'mob5346_Leave')
RegisterUnitEvent(5346, 3, 'mob5346_Kill')
RegisterUnitEvent(5346, 4, 'mob5346_Die')
